home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
net
/
amitcp_ups10.lha
/
amiga
/
syslog.h
< prev
Wrap
C/C++ Source or Header
|
1993-10-03
|
786b
|
43 lines
#define LOG_ODELAY 0
#define LOG_DAEMON 1
#define LOG_DEBUG 2
#define LOG_ERR 3
#define LOG_INFO 4
void MyKPrintF(const char *format, ...);
#define openlog(a,b,c)
__inline void mysyslog(int i, const char *format, ...)
{
#ifdef DEBUG
static FILE *fsyslog;
if(!fsyslog)
{
fsyslog =
fopen("CON:10/210/600/200/UPSD-syslog/AUTO/CLOSE/WAIT/INACTIVE",
"w");
}
if(fsyslog)
{
char *s = "unknown";
switch(i)
{
case LOG_INFO: s = "info: "; break;
case LOG_DEBUG: s = "debug: "; break;
case LOG_ERR: s = "*** err: "; break;
}
fprintf(fsyslog, s);
vfprintf(fsyslog, format, (void *) (&format+1));
fprintf(fsyslog,"\n");
fflush(fsyslog);
}
#endif
/* MyKPrintF("syslog(%d): %s\n", i, format);*/
}
#define syslog mysyslog